package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLString;
import HLLib.purchase.HLEGame;

public class HLClassEGame extends HLLibClass {
    public HLClassEGame(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLEGame();
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                HLEGame.GetRemember((HLString)args.GetObject(0), args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, HLEGame.GetRemember((HLString)args.GetObject(0), args.GetInt(0)));
            }
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                HLEGame.GetMianZeShengMing();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLEGame.GetMianZeShengMing());
            }
            break;
        }
        case 2: {
            HLEGame.MoreGame();
            break;
        }
        case 3: {
            if (resultOwnerObject == null) {
                HLEGame.GetDestNumber(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, HLEGame.GetDestNumber(args.GetInt(0)));
            }
            break;
        }
        case 4: {
            HLEGame.Purchase((HLString)args.GetObject(0), args.GetInt(0));
            break;
        }
        case 5: {
            HLEGame.Purchase1((HLString)args.GetObject(0), (HLString)args.GetObject(1));
            break;
        }
        }
    }
}
